home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / t_os / vdtwn / tvf / asmhd6 / tw1hd6 / mosaic.hd6 < prev    next >
Text File  |  1993-07-08  |  949b  |  76 lines

  1. ds_name        db    '\KOMEI\実物\tvf_prg\MOSAIC',0
  2.  
  3.  
  4. paint_wd:
  5. re_paint:
  6. mouse_in:
  7.      ret
  8. be_called:
  9.      
  10.      YOMU bx,300
  11.      push ebp
  12.      push ds
  13.      push es
  14.      mov ax,1ch
  15.      mov ds,ax
  16.      mov es,ax
  17.  
  18.  
  19. ;===== mosaic =====    
  20.         align    4
  21. #mosaic:    mov    dx,0440h    ;SETTING ZOOM
  22.         mov    al,1Bh
  23.         out    dx,al
  24.         mov    dx,0442h
  25.         mov    ax,bx
  26.         out    dx,ax
  27.  
  28.         call    clear_screen
  29.  
  30. #mosaic_:    mov    ax,0901h
  31.         int    90h
  32.         xor    dh,0FFh
  33.         je    #mosaic_
  34.         push    dx
  35.         mov    dx,0440h    ;SETTING ZOOM
  36.         mov    al,1Bh
  37.         out    dx,al
  38.         mov    dx,0442h
  39.         mov    ax,0303h
  40.         out    dx,ax
  41.         pop    dx
  42.  
  43.      pop es
  44.      pop ds
  45.      pop ebp
  46.      ret
  47.  
  48.  
  49. ;===== clear screen =====
  50.         align    4
  51. clear_screen:
  52.         mov    eax,10000000000000001000000000000000b
  53.         mov    edi,40000h
  54.         mov    ebx,360*2/4
  55.         mov    edx,400h-(360*2)
  56.         mov    ebp,240
  57.         align    4
  58. #rep_:        mov    ecx,ebx
  59.         rep    stosd
  60.         add    edi,edx
  61.         dec    ebp
  62.         jne    short #rep_
  63.         ret
  64.  
  65.  
  66. look_me:
  67.      call sub_esi
  68.      dd 0,0
  69.      dw     0,0,10,42,20,30,15,1,0,0
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.